package com.example.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.entity.PsInspectiontaskMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 巡检任务主表Mapper(ps_inspectiontask_main)
 */
@Mapper
public interface PsInspectiontaskMainMapper extends BaseMapper<PsInspectiontaskMain> {
    int deleteByPrimaryKey(Long id);

    int insert(PsInspectiontaskMain record);

    int insertSelective(PsInspectiontaskMain record);

    PsInspectiontaskMain selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PsInspectiontaskMain record);

    int updateByPrimaryKey(PsInspectiontaskMain record);

    /**
     * 根据条件查询巡检任务
     *
     * @param psInspectiontaskMain
     * @return
     */
    List<PsInspectiontaskMain> listmain(PsInspectiontaskMain psInspectiontaskMain);

    IPage<PsInspectiontaskMain> selectByPage(PsInspectiontaskMain psInspectiontaskMain,IPage<PsInspectiontaskMain> userPage , @Param(Constants.WRAPPER) Wrapper<PsInspectiontaskMain> userWrapper);
}